home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 February: Tool Chest / Dev.CD Feb 94.toast / Tool Chest / Development Platforms / MPW Related / MPW Interfaces / AIncludes / ImageCodec.a < prev    next >
Encoding:
Text File  |  1993-09-17  |  4.0 KB  |  150 lines  |  [TEXT/MPS ]

  1. ;___________________________________________________________________________
  2. ; Created: Saturday, April 24, 1993
  3. ;
  4. ; File: ImageCodec.a
  5. ;
  6. ; Assembler Interface to the Macintosh Libraries
  7. ; Copyright Apple Computer, Inc. 1990-93
  8. ; All Rights Reserved
  9. ;
  10. ;___________________________________________________________________________
  11.  
  12.  IF &TYPE('__IncludingImageCodec__') = 'UNDEFINED' THEN
  13. __IncludingImageCodec__   SET 1
  14.  
  15.  
  16.  
  17. ;    codec component selectors    
  18. ;    codec selectors 0-127 are reserved by Apple 
  19. ;    codec selectors 128-191 are subtype specific 
  20. ;    codec selectors 192-255 are vendor specific 
  21. ;    codec selectors 256-32767 are reserved by Apple 
  22. ;    negative selectors are reserved by the Component Manager 
  23.  
  24.  
  25. codecGetCodecInfo                    EQU $00
  26. codecGetCompressionTime                EQU $01
  27. codecGetMaxCompressionSize            EQU $02
  28. codecPreCompress                    EQU $03
  29. codecBandCompress                    EQU $04
  30. codecPreDecompress                    EQU $05
  31. codecBandDecompress                    EQU $06
  32. codecCDSequenceBusy                    EQU $07
  33. codecGetCompressedImageSize            EQU $08
  34. codecGetSimilarity                    EQU $09
  35. codecTrimImage                        EQU $0A
  36. codecRequestSettings                EQU $0B
  37. codecGetSettings                    EQU $0C
  38. codecSetSettings                    EQU $0D
  39.  
  40.  
  41.  
  42.  
  43. ;    codec capabilities flags    
  44.  
  45. codecCanScale                        EQU $1
  46. codecCanMask                        EQU $2
  47. codecCanMatte                        EQU $4
  48. codecCanTransform                    EQU $8
  49. codecCanTransferMode                EQU $10
  50. codecCanCopyPrev                    EQU $20
  51. codecCanSpool                        EQU $40
  52. codecCanClipVertical                EQU $80
  53. codecCanClipRectangular                EQU $100
  54. codecCanRemapColor                    EQU $200
  55. codecCanFastDither                    EQU $400
  56. codecCanSrcExtract                    EQU $800
  57. codecCanCopyPrevComp                EQU $1000
  58. codecCanAsync                        EQU $2000
  59. codecCanMakeMask                    EQU $4000
  60. codecCanShift                        EQU $8000
  61.  
  62.  
  63.  
  64. codecConditionFirstBand                EQU $1
  65. codecConditionLastBand                EQU $2
  66. codecConditionFirstFrame            EQU $4
  67. codecConditionNewDepth                EQU $8
  68. codecConditionNewTransform            EQU $10
  69. codecConditionNewSrcRect            EQU $20
  70. codecConditionNewMask                EQU $40
  71. codecConditionNewMatte                EQU $80
  72. codecConditionNewTransferMode        EQU $100
  73. codecConditionNewClut                EQU $200
  74. codecConditionNewAccuracy            EQU $400
  75. codecConditionNewDestination        EQU $800
  76. codecConditionFirstScreen            EQU $1000
  77. codecConditionCodecChangedMask        EQU $80000000
  78.  
  79. codecInfoResourceType    EQU    'cdci'    ;codec info resource type 
  80.  
  81. codecInterfaceVersion    EQU        1    ; high word returned in component GetVersion 
  82.  
  83.  
  84.  
  85. CodecCapabilitiesRecord     RECORD        0
  86. flags                        DS.L        1
  87. wantedPixelSize                DS.W        1
  88. extendWidth                    DS.W        1
  89. extendHeight                DS.W        1
  90. bandMin                        DS.W        1
  91. bandInc                        DS.W        1
  92. pad                            DS.W        1
  93. time                        DS.L        1
  94. size                        EQU            *
  95.                             ENDR
  96.  
  97. CodecCompressParams     RECORD     0
  98. sequenceID                 DS.L    1        ; precompress,bandcompress 
  99. imageDescription        DS.L    1        ; precompress,bandcompress 
  100. data                     DS.L    1
  101. bufferSize                DS.L    1
  102. frameNumber                DS.L    1
  103. startLine                DS.L    1
  104. stopLine                DS.L    1
  105. conditionFlags            DS.L    1
  106. callerFlags                DS.W    1
  107. capabilities             DS.L    1        ; precompress,bandcompress 
  108. progressProcRecord        DS.L    2
  109. completionProcRecord    DS.L    2    
  110. flushProcRecord            DS.L    2
  111. srcPixMap                  DS.W    25        ; precompress,bandcompress 
  112. prevPixMap                 DS.W    25    
  113. spatialQuality             DS.L    1
  114. temporalQuality            DS.L    1
  115. similarity                 DS.L    1
  116. dataRateParams            DS.L    1
  117. reserved                DS.L    1    
  118. size                    EQU    *
  119.                         ENDR
  120.  
  121. CodecDecompressParams     RECORD     0
  122. sequenceID                DS.L    1            ; predecompress,banddecompress 
  123. imageDescription         DS.L    1            ; predecompress,banddecompress 
  124. data                     DS.L    1
  125. bufferSize                 DS.L    1
  126. frameNumber                DS.L    1
  127. startLine                 DS.L    1
  128. stopLine                 DS.L    1
  129. conditionFlags             DS.L    1
  130. callerFlags             DS.W    1
  131. capabilities             DS.L    1            ; predecompress,banddecompress 
  132. progressProcRecord         DS.L    2
  133. completionProcRecord     DS.L    2
  134. dataProcRecord             DS.L    2
  135. port                     DS.L    1            ; predecompress,banddecompress 
  136. dstPixMap                 DS.W    25            ; predecompress,banddecompress 
  137. maskBits                 DS.L    1
  138. mattePixMap             DS.L    1
  139. srcRect                 DS.W    4            ; predecompress,banddecompress 
  140. matrix                     DS.L    1            ; predecompress,banddecompress 
  141. accuracy                 DS.L    1            ; predecompress,banddecompress 
  142. transferMode             DS.W    1            ; predecompress,banddecompress 
  143. reserved                 DS.L    2                
  144. size                    EQU    *
  145.                         ENDR
  146.  
  147.  
  148.  
  149. #endif    __IMAGECODEC__
  150.